package com.onlyxiahui.common.action.description.util;

import java.lang.reflect.AnnotatedElement;

import com.onlyxiahui.common.action.description.annotation.DocIgnore;

/**
 * Description <br>
 * Date 2020-01-09 15:04:38<br>
 * 
 * @author XiaHui [onlovexiahui@qq.com]<br>
 * @since 1.0.0
 */

public class ActionIgnoreUtil {

//	public static boolean isIgnore(Class<?> classType) {
//		return null != classType && null != classType.getAnnotation(Ignore.class);
//	}
//
//	public static boolean isIgnore(Method method) {
//		return null != method && null != method.getAnnotation(Ignore.class);
//	}
//
//	public static boolean isIgnore(Field field) {
//		return null != field && null != field.getAnnotation(Ignore.class);
//	}

	public static boolean isIgnore(AnnotatedElement e) {
		return null != e && null != e.getAnnotation(DocIgnore.class);
	}
}
